#include "Resources.h"
#include <cocos2d.h>

uint8_t* Resources::Load(const char* name)
{
	std::string fullPath = cocos2d::CCFileUtils::sharedFileUtils()->fullPathForFilename(name);
	uint8_t* pBuffer = nullptr;
	unsigned long bufferSize = 0;
	pBuffer = cocos2d::CCFileUtils::sharedFileUtils()->getFileData(fullPath.c_str(), "r", &bufferSize);

	return pBuffer;
}